package com.lzp.copyui.douyin

import android.os.Bundle
import androidx.viewpager2.widget.ViewPager2
import com.base.BaseActivity
import com.lzp.copyui.databinding.DouyinHomeActivityBinding
import java.util.*

/**
 * @description:
 * @author: lxp
 * @date: 2021/11/25 上午10:16
 */
class DouyinHomeActivity :BaseActivity() {

    private val source1 = "https://download.niucache.com/static/upload/20201229/d92c0c7a-27b2-486e-be4c-8767a4cd754b.mp4"

    private val binding by lazy { DouyinHomeActivityBinding.inflate(layoutInflater) }
    private val vpAdapter = HomeAdapter()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(binding.root)
    }

    override fun initView() {
        super.initView()
        binding.viewPager.apply {
            orientation = ViewPager2.ORIENTATION_VERTICAL
            adapter = vpAdapter
        }
    }
}